package com.naiterui.ehp.bs.patient.vo.common;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

public class LimitConfigVO implements Serializable {

    /**
     * 字段或域定义：<code>serialVersionUID</code>
     */
    private static final long serialVersionUID = 7567987729074525882L;

    @JsonInclude(Include.NON_NULL)
    private Integer max;

    @JsonInclude(Include.NON_NULL)
    private Integer min;

    @JsonInclude(Include.NON_NULL)
    private Integer def;

    public LimitConfigVO() {
        super();
    }

    public LimitConfigVO(Integer max, Integer min, Integer def) {
        super();
        this.max = null == max || max.intValue() <= 0 ? null : max;
        this.min = null == min || min.intValue() <= 0 ? null : min;
        this.def = null == def || def.intValue() <= 0 ? null : def;
    }

    public Integer getMax() {
        return this.max;
    }

    public void setMax(Integer max) {
        this.max = max;
    }

    public Integer getMin() {
        return this.min;
    }

    public void setMin(Integer min) {
        this.min = min;
    }

    public Integer getDef() {
        return this.def;
    }

    public void setDef(Integer def) {
        this.def = def;
    }

}
